<?php
	/**
	 * 列表页商品视图模型
	 */
	class GoodsListModel extends ViewModel{
		protected $tableName = 'goods';

		protected $viewFields = array(
			'goods' => array(
				'id' => 'gid','name','sprice','listpic','bid','cid',
				'_type' => 'LEFT'
				),
			'category' => array(
				'id' => 'cateid',
				'name' => 'catename',
				'_on' => 'goods.cid = category.id'
				)
			);
	}
?>